<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: Jam
  Date: 2018/2/4
  Time: 17:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addOrEdit</title>
</head>
<body>
<s:form action="doAddOrEdit.action" method="POST" name="adminRule">
    <s:hidden name="adminRule.id"/>
    <%--如果不加这个隐藏标签, 就会导致status属性为null--%>
    <s:hidden name="adminRule.status"/>
    <s:textfield label="显示名" name="adminRule.title"/>
    <s:textfield label="名称" name="adminRule.name"/>
    <s:radio label="节点类型" list="%{#request.levels}" name="adminRule.level"/>
    <s:select label="父节点" list="%{#request.pids}" name="adminRule.parent.id"/>
    <s:textfield label="路径" name="adminRule.path"/>
    <s:submit value="提交"/>
</s:form>
</body>
</html>
